package com.fpx.open.platform.domain.ae;

import org.hibernate.validator.constraints.NotEmpty;



public class EventHeader {
    /**
     * 事件类型 @see EventType
     */
    private String eventType;
    /**
     * 事件发生时间 YYYY-MM-DD hh:mm:ss
     */
    private String eventTime;
    /**
     * 事件源
     */
    @NotEmpty(message="eventSource不能为空")
    private String eventSource;
    /**
     * 事件目标
     */
    @NotEmpty(message="eventTarget不能为空")
    private String eventTarget;
    
    public String getEventType() {
        return eventType;
    }
    public void setEventType(String eventType) {
        this.eventType = eventType;
    }
    public String getEventTime() {
        return eventTime;
    }
    public void setEventTime(String eventTime) {
        this.eventTime = eventTime;
    }
    public String getEventSource() {
        return eventSource;
    }
    public void setEventSource(String eventSource) {
        this.eventSource = eventSource;
    }
    public String getEventTarget() {
        return eventTarget;
    }
    public void setEventTarget(String eventTarget) {
        this.eventTarget = eventTarget;
    }
    @Override
    public String toString() {
        return "EventHeader [eventType=" + eventType + ", eventTime=" + eventTime + ", eventSource=" + eventSource
                + ", eventTarget=" + eventTarget + "]";
    }
    
}
